#ifndef DEPTMANAGERAPI_H
#define DEPTMANAGERAPI_H

#include <QObject>
#include <QMainWindow>
#include <QtNetwork>
#include <QDebug>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <Utils.h>
#include <config.h>

class DeptManagerApi : public QObject
{
    Q_OBJECT
public:
    explicit DeptManagerApi(QObject *parent = nullptr);

    QByteArray* list(QString deptName,QString status);

signals:
private:
    QString baseUrl ;
    QNetworkRequest request;
    QNetworkAccessManager *manager ;
    QByteArray *data = nullptr;
    Utils utils;
};

#endif // DEPTMANAGERAPI_H
